package cn.ssj.service.impl;

import cn.ssj.dao.StatisticsDao;
import cn.ssj.entity.Statistics;
import cn.ssj.service.StatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

@Service
public class StatisticsServiceImpl extends BaseServiceImpl<Statistics,Integer> implements StatisticsService{

    @Autowired
    private StatisticsDao dao;

    @Transactional
    public Statistics insert(Statistics entity) {
        return super.insert(entity);
    }

    @Transactional
    public Statistics update(Statistics entity) {
        return super.update(entity);
    }

    @Transactional
    public boolean delete(Integer integer) {
        return super.delete(integer);
    }
}
